projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07d99d2
)
treemodelrefcount: check_iter(): check if iter is valid
author
Kristian Rietveld
<kris@gtk.org>
Sun, 10 Jul 2011 15:37:05 +0000
(17:37 +0200)
committer
Kristian Rietveld
<kris@gtk.org>
Mon, 22 Aug 2011 19:30:32 +0000
(21:30 +0200)
gtk/tests/gtktreemodelrefcount.c
patch
|
blob
|
history
diff --git
a/gtk/tests/gtktreemodelrefcount.c
b/gtk/tests/gtktreemodelrefcount.c
index 974a896ad0f4da490d6a1e610f57807c0c74dfdf..9c91a587da6b663ff6972c3e0b2a6ab8f04cf85d 100644
(file)
--- a/
gtk/tests/gtktreemodelrefcount.c
+++ b/
gtk/tests/gtktreemodelrefcount.c
@@
-222,6
+222,9
@@
check_iter (GtkTreeModelRefCount *ref_model,
{
NodeInfo *info;
+ if (may_assert)
+ g_assert (gtk_tree_store_iter_is_valid (GTK_TREE_STORE (ref_model), iter));
+
info = g_hash_table_lookup (ref_model->priv->node_hash, iter->user_data);
if (!info)
{